﻿using System.Collections;
using System.Collections.Generic;
using Entitas;
using UnityEngine;


namespace HelloWorld
{

    public class GameController : MonoBehaviour
    {

        private Systems system;
        // Start is called before the first frame update
        void Start()
        {
            var contexts = Contexts.sharedInstance;
            system = new Feature("Systems").Add(new AddSystems(contexts));
            system.Initialize();
        }

        // Update is called once per frame
        void Update()
        {
            system.Execute();
            system.Cleanup();
        }
    }
}

